package com.rui.cn.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 角色菜单
 * </p>
 *
 * @author zhang123
 * @since 2018-01-15
 */
@TableName("sys_role_menu")
public class SysRoleMenu extends Model<SysRoleMenu> implements Serializable{

    private static final long serialVersionUID = 1L;

    private Integer roleid;
    private Integer menuid;

    public SysRoleMenu(){

    }
    public SysRoleMenu(int menuid,Integer roleid){
        this.menuid=menuid;
        this.roleid=roleid;
    }
    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public Integer getMenuid() {
        return menuid;
    }

    public void setMenuid(Integer menuid) {
        this.menuid = menuid;
    }

    @Override
    protected Serializable pkVal() {
        return this.roleid;
    }

    @Override
    public String toString() {
        return "SysRoleMenu{" +
        "roleid=" + roleid +
        ", menuid=" + menuid +
        "}";
    }
}
